<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\8\29 0029
 * Time: 21:43
 */
class Dollarcalc{
    private $dollar;
    private $product;
    private $service;
    public $rate =  1;

    public function requestCalc($productNew,$serviceNow){
        $this->product = $productNew;
        $this->service = $serviceNow;
        $this->dollar = $this->product+$this->service;
        return $this->requestTotal();
    }

    public function requestTotal(){
        $this->dollar *= $this->rate;
        return $this->dollar;
    }
}